package cn.jobstart.controller;
import cn.jobstart.pubInter.aop.SystemLog;
import cn.jobstart.web.common.SkJsonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.springframework.web.bind.annotation.RestController;
import cn.jobstart.pubInter.exception.SkException;
import cn.jobstart.pubInter.IBaseService;
import cn.jobstart.pubInter.RestfulController;
import cn.jobstart.dto.AdminJobManagerDTO;
import cn.jobstart.dto.AdminJobManagerPageDTO;
import cn.jobstart.modelExt.AdminJobManagerExt;
import cn.jobstart.searchExt.AdminJobManagerSearchExt;
import cn.jobstart.service.IAdminJobManagerService;
import cn.jobstart.vo.AdminJobManagerDetailVO;
import cn.jobstart.vo.AdminJobManagerListVO;
import cn.jobstart.vo.AdminJobManagerDomainVO;
import cn.jobstart.vo.AdminJobManagerDetailDomainVO;
import cn.jobstart.export.AdminJobManagerDomainExport;
import cn.jobstart.controller.ApiManageController;
import org.springframework.validation.annotation.Validated;

import java.util.List;
import java.util.Set;
import java.util.HashSet;
import cn.jobstart.pubInter.exception.BusinessException;

/**
*    @author sunke
*    @Date 2023-10-04 23:18:14
*    @description AdminJobManagerController      职位管理人员
*/
@Api(tags = "管理系统-职位管理人员相关", description = "职位管理人员相关接口")
@RestController(value ="adminJobManagerRestfulController")
@RequestMapping("/adminJobManager/")
@Validated
public class AdminJobManagerController extends ApiManageController<AdminJobManagerDTO,AdminJobManagerPageDTO,AdminJobManagerExt, AdminJobManagerSearchExt,AdminJobManagerDomainVO,AdminJobManagerDetailDomainVO,AdminJobManagerDetailVO,AdminJobManagerListVO,String> {

	@Resource(name = "adminJobManagerService")
	private IAdminJobManagerService adminJobManagerService;




	@Override
	public IBaseService<AdminJobManagerExt, AdminJobManagerSearchExt,String> getBaseService() throws SkException {
		return adminJobManagerService;
	}

	@Override
	public String getBaseRoute() {
		return "/adminJobManager/";
	}

	/**
	* 当前模板名称
	* @return
	*/
	@Override
	public String getModelName(){
		return "职位管理人员";
	}

	@Override
	public Class exportExcelClass() {
		return AdminJobManagerDomainExport.class;
	}

	@Override
	public Set<String> totalMapSet() {
		Set totalMapSet=new HashSet();
		totalMapSet.add("count(admin_job_manager.ajm_id) as countNum");
		return totalMapSet;
	}


}